Skip to content

refactor(core): cleanup jsonify code#2893

Closed
iuioiua wants to merge 8 commits into
freshframework:mainfrom
iuioiua:cleanup-jsonify
Closed

refactor(core): cleanup jsonify code#2893
iuioiua wants to merge 8 commits into
freshframework:mainfrom
iuioiua:cleanup-jsonify

Conversation

@iuioiua

@iuioiua iuioiua commented May 6, 2025

Copy link
Copy Markdown
Contributor
  1. Moves stringify() and parse() tests to *_test.ts files. This is usually how tests are structured.
  2. Slightly cleans up base64 encoding and decoding functions
  3. Removes the use of snapshot assertions, which might not be needed.

Deno.test(`round trip - ${inspect(value)}`, async (t) => {
Deno.test(`round trip - ${Deno.inspect(value)}`, () => {
const str = stringify(value);
await assertSnapshot(t, str);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure why snapshot assertions were used here originally.

@iuioiua iuioiua marked this pull request as ready for review May 6, 2025 02:38
@iuioiua iuioiua closed this Aug 12, 2025
@iuioiua iuioiua deleted the cleanup-jsonify branch August 12, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant